//
//  DEWMessageToolsTableCell.m
//  OtherDemo
//
//  Created by lianjie on 2018/7/25.
//  Copyright © 2018年 lianjie. All rights reserved.
//

#import "DEWMessageToolsTableCell.h"

@implementation DEWMessageToolsTableCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    
    return self;
}
///创建试图
- (void)createView
{
    CGFloat imageWH = 45.0f;
    UIImageView *imageV = [[UIImageView alloc]init];
    imageV.frame = CGRectMake(Margin_15, 13, imageWH, imageWH);
    imageV.layer.cornerRadius = imageWH/2;
    imageV.layer.masksToBounds = YES;
    imageV.layer.borderWidth = 1.0f;
    imageV.layer.borderColor = CellLineColor.CGColor;
    _imageV = imageV;
    [self.contentView addSubview:imageV];
    
    UILabel *titileLab = [[UILabel alloc]initWithFrame:CGRectMake(imageV.right+14.0f, 24.0f, 254.0f, 23.0f)];
    titileLab.textColor = UIColorFromRGB(0x333333);
    _titleLab = titileLab;
    titileLab.font = [UIFont systemFontOfSize:16.0f weight:UIFontWeightHeavy];
    [self.contentView addSubview:titileLab];
    
//    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(titile.left, 69, DEWScreenWidth-titile.left, 1.0f)];
//    line.backgroundColor = CellLineColor;
//    [self.contentView addSubview:line];
//    
//    self.line = line;
    
    self.lj_lineWith =DEWScreenWidth-titileLab.left;
    
    _bageLab = [PPBadgeLabel defaultBadgeLabel];
    _bageLab.backgroundColor = PointColor;
    _bageLab.p_y = DEWScreenWidth-15;
    _bageLab.p_centerY = self.height/2;
//    [self.contentView addSubview:_bageLab];
    
    
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
